package dapps.entity.monitor;
import java.text.DecimalFormat;

public class Cycleratio {



	public Cycleratio() {
	}

	
	public String cycleratiodataint(Integer thismonth,Integer lastmonth){
		if(thismonth==null||thismonth==0||lastmonth==null||lastmonth==0) return "数据不完整";
		Double db = (Double.valueOf(thismonth)-Double.valueOf(lastmonth))*100/Double.valueOf(lastmonth);		 
		DecimalFormat myFormatter = new DecimalFormat("#.##");
		String output = myFormatter.format(db);
		return output+"%";
	}

}
